﻿@using System.Web.Mvc;
@using System.Configuration;
@using System.Threading;
@using Webs.Controllers;
@helper FavIcon(string rel, string IconName, UrlHelper url)
{
    <link rel="@rel" href="@url.Content("~/Content/themes/" + @Global.AppTheme + "/images/" + IconName)" />
}
@helper Style(string StyleName, UrlHelper url)
{
    <link href="@url.Content("~/Content/themes/" + @Global.AppTheme + "/" + StyleName)" rel="stylesheet" type="text/css" />
}
@helper Script(string ScriptName, UrlHelper url)
{
    <script src="@url.Content("~/Scripts/" + ScriptName)" type="text/javascript"></script>
}
@helper Image(string ImageFileName, string AlterText, UrlHelper url)
{
    <img src="@url.Content("~/Content/themes/" + @Global.AppTheme + "/images/" + ImageFileName)" alt="@AlterText" />
}
@helper Image(string ImageFileName, string AlterText, int Width, int Height, UrlHelper url)
{
    <img src="@url.Content("~/Content/themes/" + @Global.AppTheme + "/images/" + ImageFileName)" width="@Width.ToString()" height="@Height.ToString()" alt="@AlterText" />
}
@helper Image(string ImageFileName, string AlterText, int Width, int Height, string htmlAttributes, UrlHelper url)
{
    <img src="@url.Content("~/Content/themes/" + @Global.AppTheme + "/images/" + ImageFileName)" + width="@Width.ToString()" height="@Height.ToString()" alt="@AlterText" @htmlAttributes />
}